# Maintainer: Ainola <ainola@archlinux.org>
# Contributor: emersion

pkgname=xcb-util-errors
pkgver=1.0.1
pkgrel=1
pkgdesc='XCB errors library'
arch=('loong64' 'x86_64')
url='https://cgit.freedesktop.org/xcb/util-errors/'
license=('MIT')
depends=('libxcb')
makedepends=('xorgproto' 'python') # 'xorg-util-macros' 'doxygen' 'graphviz')  # no docs yet to build
options=('debug')
source=(https://xorg.freedesktop.org/archive/individual/lib/xcb-util-errors-$pkgver.tar.xz{,.sig})
sha512sums=('e883e178921a6f783e0100acae66eaf0ed13fc169fd21b0c313d7a70c9358c129b01b117675eda50e258e8b3b27ff7b21aa4d15c4da69249ffc6bbc7dcf87d4a'
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>

build() {
    cd "$pkgname-$pkgver"
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
    install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
}
